package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "order_patients_info")
public class PatientsInfo implements Serializable {

	private static final long serialVersionUID = -4533372044365397814L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255)")
	private String orderNo;
	@Column(name = "a_Type_int", columnDefinition = "int(11) comment '在线复诊=10,图文问诊=11,电话问诊=12,视频问诊=13'")
	private Integer aType;
	@Column(name = "first_tinyint", columnDefinition = "tinyint(1) comment '本院=1,非本院=2'")
	private Integer first;
	@Column(name = "pid_bigint", columnDefinition = "bigint(20)")
	private Long pid;
	@Column(name = "name_nvarchar", columnDefinition = "varchar(255)")
	private String name;
	@Column(name = "age_int", columnDefinition = "int(11)")
	private Integer age;
	@Column(name = "sex_nvarchar", columnDefinition = "varchar(255)")
	private String sex;
	@Column(name = "chief_complaint_nvarchar", columnDefinition = "varchar(255)")
	private String chiefComplaint;
	@Column(name = "allergy_nvarchar", columnDefinition = "varchar(255)")
	private String allergy;
	@Column(name = "past_disease_nvarchar", columnDefinition = "varchar(255)")
	private String pastDisease;
	@Column(name = "f_visit_date_date", columnDefinition = "datetime(3)")
	private Date fVisitDate;
	@Column(name = "f_hospital_nvarchar", columnDefinition = "varchar(255)")
	private String fHospital;
	@Column(name = "f_department_nvarchar", columnDefinition = "varchar(255)")
	private String fDepartment;
	@Column(name = "f_diagnosis_nvarchar", columnDefinition = "varchar(255)")
	private String fDiagnosis;
	@Column(name = "p_patients_info_id_bigint", columnDefinition = "bigint(20)")
	private Long pPatientsInfoId;
	@Column(name = "illness_nvarchar", columnDefinition = "varchar(255)")
	private String illness;
	@Column(name = "history_nvarchar", columnDefinition = "varchar(255)")
	private String history;
	@Column(name = "tongue_img_varchar", columnDefinition = "varchar(500)")
	private String tongueImg;
	@Column(name = "is_pregnancy_bit", columnDefinition = "bit")
	private Boolean isPregnancy;
	@Column(name = "is_lactation_period_bit", columnDefinition = "bit")
	private Boolean isLactationPeriod;
}
